/** 
 * Project Name:eleme-website 
 * File Name:MenuCategoryServiceimpl.java 
 * Package Name:com.eleme.service.impl 
 * Date:2018年1月1日上午1:06:29 
 * Copyright (c) 2018, fakedesigner@163.com All Rights Reserved. 
 * 
*/  
  
package com.eleme.service.impl;

import java.util.List;

import com.eleme.dao.IDaoFactory;
import com.eleme.dao.IMenuCategoryDao;
import com.eleme.dao.ISampleDao;
import com.eleme.entity.MenuCategory;
import com.eleme.service.IMenuCategoryService;
import com.google.gson.GsonBuilder;

/** 
 * ClassName:MenuCategoryServiceimpl <br/> 
 * Function: TODO ADD FUNCTION. <br/> 
 * Reason:   TODO ADD REASON. <br/> 
 * Date:     2018年1月1日 上午1:06:29 <br/> 
 * @author   Pan 
 * @version   
 * @since    JDK 1.8 
 * @see       
 */
public class MenuCategoryServiceimpl extends BaseServiceImpl<MenuCategory> implements IMenuCategoryService{

	private IMenuCategoryDao dao;
	
	public MenuCategoryServiceimpl(IDaoFactory factory) {
		super(factory.getMenuCategoryDao());
		dao = (IMenuCategoryDao) super.getDao();
	}	
	
	
	
	public String getMenuCategory(int shopid) {
		// TODO Auto-generated method stub
		return new GsonBuilder().create().toJson(dao.getMenuCategory(shopid));
	}



	public static void main(String[] args) {
		// TODO Auto-generated method stub

	}

}
